//
//  AXFMoneyCouponCell.m
//  BEEQUICK
//
//  Created by admin on 21/11/2016.
//  Copyright © 2016 SevenGroup. All rights reserved.
//

#import "AXFMoneyCouponCell.h"

@implementation AXFMoneyCouponCell

- (void)setupUI {
	self.contentView.backgroundColor = UIColor.whiteColor;
	
	UIImageView *imgView = [[UIImageView alloc] init];
	UILabel *moneyLabel = [[UILabel alloc] init];
	UILabel *creditsLabel = [[UILabel alloc] init];
	
	imgView.backgroundColor = UIColor.redColor;
	moneyLabel.font = [UIFont systemFontOfSize:12];
	
	creditsLabel.font = [UIFont systemFontOfSize:12];
	creditsLabel.textColor = [UIColor cz_colorWithHex:0xff4400];
	
	[self.contentView addSubview:imgView];
	[self.contentView addSubview:moneyLabel];
	[self.contentView addSubview:creditsLabel];
	
	[imgView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.centerX.offset(0);
		make.top.offset(37);
		make.width.equalTo(@115);
		make.height.equalTo(@63);
	}];
	
	[moneyLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.left.offset(16);
		make.top.equalTo(imgView.mas_bottom).offset(21);
	}];
	
	[creditsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.left.offset(16);
		make.top.equalTo(moneyLabel.mas_bottom).offset(8);
	}];
	
	_imgView = imgView;
	_moneyLabel = moneyLabel;
	_creditsLabel = creditsLabel;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
